package com.cms.rxjava.view

import android.content.Context
import android.view.View
import com.alibaba.android.arouter.launcher.ARouter
import com.android.baselibrary.customview.BaseCustomView
import com.cms.rxjava.BR
import com.cms.rxjava.R
import com.cms.rxjava.bean.RxBean
import com.cms.rxjava.router.RxRouter

class RxView(context: Context) :BaseCustomView<RxBean>(context) {
    override fun onClick(v: View) {
        ARouter.getInstance().build(RxRouter.RxJava_Base_Fragment).withString(RxRouter.RxJava_Parame,viewModel.path).navigation()
    }


    override fun setViewLayoutId(): Int {
        return R.layout.layout_item_rx
    }

    override fun getBR(): Int {
        return BR.rxBean
    }

    override fun initView(data: RxBean?) {


    }
}